package com.yuexunit.finance.project.entity.lexicon;

/**
 * @author wenwenlong
 */
public enum BillTypeEnum {

	UNKNOWN("未知"), RECEIVE("收款单"), DISBUREMENT("付款单");
	private final String paramType;

	private BillTypeEnum(String paramType) {
		this.paramType = paramType;
	}

	public String getValue() {
		return paramType;
	}

	/**
	 * 数字转为枚举类型
	 * @param value 异常类型 0:未知/1:收款单/2:付款单
	 * @return 收款单类型枚举
	 */
	public static BillTypeEnum valueOf(Integer value) {
		if (value == null || values().length <= value.intValue()) {
			return UNKNOWN;
		}
		return values()[value.intValue()];
	}

}
